<?php


namespace App\Http\Controllers\DriverApp;
use App\Services\UsersService;
use Illuminate\Http\Request;
class DriveregController extends BaseController
{
    /**
     * 修改资料
     */
    public function information(Request $request, UsersService $service)
    {
        $password = $request->post('password'); //密码
        $password1 = $request->post('password1'); //确认密码
        $avatar = $request->post('avatar'); //头像地址
        $data =['password'=>$password,'password1'=>$password1,'avatar'=>$avatar];
        $res =$service->update($this->uid,$data);
        return $this->sendJson($res);
    }

    /**
     * 认证资料
     */
    public function Certification()
    {

    }
}